package com.teradata.olingo.processor.core.api;

import org.apache.olingo.commons.api.format.ContentType;
import org.apache.olingo.server.api.*;
import org.apache.olingo.server.api.processor.DefaultProcessor;
import org.apache.olingo.server.api.processor.ErrorProcessor;

public final class GenericDefaultErrorProcessor implements ErrorProcessor {
  private final ErrorProcessor defaultProcessor;

  GenericDefaultErrorProcessor() {
    super();
    defaultProcessor = new DefaultProcessor();

  }

  @Override
  public void init(OData odata, ServiceMetadata serviceMetadata) {
    defaultProcessor.init(odata, serviceMetadata);

  }

  @Override
  public void processError(ODataRequest request, ODataResponse response, ODataServerError serverError,
      ContentType responseFormat) {
    defaultProcessor.processError(request, response, serverError, responseFormat);
  }

}
